package com.xqboss.apps.dto.sys;

import com.xqboss.apps.dto.PageDto;
import com.xqboss.apps.enums.sys.JobConfigStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 定时任务
 * </p>
 *
 * @author admin
 * @since 2024-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JobDto", description="JobDto")
public class JobDto<T> extends PageDto<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务类型（1-加油运动场）")
    @NotNull(message = "定时任务id，关联id不能为空~")
    private JobConfigStateEnum state;
}
